import React from 'react'
import { useEffect } from 'react'
import axios from 'axios'; // 

export default function Books() {
  useEffect(() => {
    async function main(){
      let result = await axios.get('/books');
      console.log(result);
    }
    main();
  }, [])

  return (
    <div>Books</div>
  )
}
